package cn.qicaiwang.open.system.service.impl;

import cn.qicaiwang.open.system.mapper.SystemOperLogMapper;
import cn.qicaiwang.open.system.model.entity.SystemOperLog;
import cn.qicaiwang.open.system.model.req.OperateLogREQ;
import cn.qicaiwang.open.system.service.ISystemOperLogService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author gaoxi
 **/
@Service
public class SystemOperLogService extends ServiceImpl<SystemOperLogMapper, SystemOperLog> implements ISystemOperLogService {
    @Autowired
    private SystemOperLogMapper sysOperLogMapper;

    @Override
    public Page pageList(Page page, OperateLogREQ bean) {
        return sysOperLogMapper.page(page, bean);
    }

    @Override
    public boolean clean() {
        sysOperLogMapper.clean();
        return true;
    }

    @Override
    public boolean cleanWithMe(String username) {
        int i = sysOperLogMapper.cleanWithMe(username);
        return true;
    }
}
